#include "help.hpp"
class Solution
{
public:
    vector<int> topKFrequent(vector<int> &nums, int k)
    {
        vector<int> ret;
        map<int, int> mmm;
        int n = nums.size();
        for (size_t i = 0; i < n; i++)
        {
            mmm[nums[i]]++;
        }
        vector<int> v[100000];
        for (auto &&ele : mmm)
        {
            cout << ele.first << " " << ele.second << "\n";
        }

        return ret;
    }
};
int main(int argc, char const *argv[])
{
    vector<int> nums = stringToVector("[1,1,1,2,2,3,5]");
    Solution s;
    s.topKFrequent(nums, 3);
    return 0;
}
